package com.kuang.service;

import com.kuang.dao.UserMapper;
import com.kuang.pojo.Users;
import java.util.List;

public class UserServiceImpl implements UserService{

    private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper){this.userMapper = userMapper;}

    public int addUser(Users user){return userMapper.addUser(user);}

    public int deleteUserByUsername(String username){return userMapper.deleteUserByUsername(username);}

    public int updateUser(Users user){return userMapper.updateUser(user);}

    public Users queryUserByUsername(String username){return userMapper.queryUserByUsername(username);}

    public List<Users> queryAllUser(){return userMapper.queryAllUser();}

    public String checkPasswordByUsername(String username) {
        return null;
    }

}
